Comparison of a 15-year module lifetime vs 50-year module lifetime from a material circularity standpoint.
This scenario is a though experiment comparing a 15-year 95% recyclable module versus a 50-year module 30% recyclable module. This is done to understand potential tradeoffs in PV technology evolution - is it better to create a completely recyclable PV panel, or to extend the module lifetime. This scenario assumes that the 15-year module is 95% recyclable into high quality material, i.e. it will be used to create new modules.
95% recyclability is represented by a 100% collection rate and a 95% efficient recycling process.
The 50-year module uses the previous settings.
Plot the annual waste glass sent to the landfill for this scenario. Here, because the 15-module is 100% collected and only 5% is landfilled during the recycling process the landfilled glass is very low regardless of capacity assumptions. Thus, if the intent is to avoid landfilled material, a 95% recyclable module is the best technology evolution.
import os
from pathlib import Path
testfolder = str(Path().resolve().parent.parent / 'PV_ICE' / 'TEMP' / 'Tutorial2')
if not os.path.exists(testfolder):
os.makedirs(testfolder)
import PV_ICE
import matplotlib.pyplot as plt
import pandas as pd
plt.rcParams.update({'font.size': 14})
plt.rcParams['figure.figsize'] = (12, 5)
# This information helps with debugging and getting support :)
import sys, platform
print("Working on a ", platform.system(), platform.release())
print("Python version ", sys.version)
print("Pandas version ", pd.__version__)
print("PV_ICE version ", PV_ICE.__version__)
Working on a Windows 10 Python version 3.11.4 | packaged by Anaconda, Inc. | (main, Jul 5 2023, 13:38:37) [MSC v.1916 64 bit (AMD64)] Pandas version 2.1.0 PV_ICE version v0.2.0+550.ga1540cd.dirty
Let's start by defining our simulation. In this project, we will create three scenarios:
'base': Standard scenario we have seen so far with the default baseline values. '50_Year_Module': Simulation of a 50 year old module with lower recyclability and higher reliability(the reliability and recyclability values will be modified in Section 3.2.3 and 3.2.4 respectively).'15_Year_Module': Simulation of a 15 year old module with higher recyclability and higher reliability (the reliability and recyclability values will be modified in Section 3.2.3 and 3.2.4 respectively).All these scenarios will be loaded with the same materials: 'glass', 'silicon', 'silver', 'copper', 'aluminium_frames' and 'encapsulant'.
r1 = PV_ICE.Simulation(name='Simulation1', path=testfolder)
r1.createScenario(name='50_Year_Module', massmodulefile='baseline_modules_mass_US.csv')
r1.scenario['50_Year_Module'].addMaterials(['glass', 'silicon', 'silver', 'copper', 'aluminium_frames', 'encapsulant'])
r1.createScenario(name='15_Year_Module', massmodulefile='baseline_modules_mass_US.csv')
r1.scenario['15_Year_Module'].addMaterials(['glass', 'silicon', 'silver', 'copper', 'aluminium_frames', 'encapsulant'])
r1.createScenario(name='base', massmodulefile='baseline_modules_mass_US.csv')
r1.scenario['base'].addMaterials(['glass', 'silicon', 'silver', 'copper', 'aluminium_frames', 'encapsulant'])
path = C:\Users\sayala\Documents\GitHub\PV_ICE\PV_ICE\TEMP\Tutorial2 Baseline folder directed to default: C:\Users\sayala\Documents\GitHub\PV_ICE\PV_ICE\baselines No energy module file passed. If desired, pass one of the following options: ['baseline_modules_energy.csv'] Adding Mass AND Energy files for: glass Adding Mass AND Energy files for: silicon Adding Mass AND Energy files for: silver Adding Mass AND Energy files for: copper Adding Mass AND Energy files for: aluminium_frames Adding Mass AND Energy files for: encapsulant No energy module file passed. If desired, pass one of the following options: ['baseline_modules_energy.csv'] Adding Mass AND Energy files for: glass Adding Mass AND Energy files for: silicon Adding Mass AND Energy files for: silver Adding Mass AND Energy files for: copper Adding Mass AND Energy files for: aluminium_frames Adding Mass AND Energy files for: encapsulant No energy module file passed. If desired, pass one of the following options: ['baseline_modules_energy.csv'] Adding Mass AND Energy files for: glass Adding Mass AND Energy files for: silicon Adding Mass AND Energy files for: silver Adding Mass AND Energy files for: copper Adding Mass AND Energy files for: aluminium_frames Adding Mass AND Energy files for: encapsulant
Now we modify certain columns to model each module according to the mentioned characteristics.
r1.scenario['50_Year_Module'].dataIn_m['mod_reliability_t50'] = 60
r1.scenario['50_Year_Module'].dataIn_m['mod_reliability_t90'] = 70
r1.scenario['50_Year_Module'].dataIn_m['mod_lifetime'] = 50
r1.scenario['15_Year_Module'].dataIn_m['mod_degradation'] = 0.4
r1.scenario['15_Year_Module'].dataIn_m['mod_reliability_t50'] = 20
r1.scenario['15_Year_Module'].dataIn_m['mod_reliability_t90'] = 25
r1.scenario['15_Year_Module'].dataIn_m['mod_lifetime'] = 15
r1.scenario['15_Year_Module'].dataIn_m['mod_degradation'] = 1.4
r1.scenario['15_Year_Module'].dataIn_m['mod_EOL_pg4_recycled'] = 100.0 #100% collection
r1.scenario['15_Year_Module'].dataIn_m['mod_EOL_collection_eff'] = 100.0
#r1.scenario['15_Year_Module'].material['glass'].materialdata['mat_MFG_eff'] = 100 #100% efficiency of recycling
r1.scenario['15_Year_Module'].material['glass'].matdataIn_m['mat_MFG_scrap_Recycled'] = 100.0
r1.scenario['15_Year_Module'].material['glass'].matdataIn_m['mat_MFG_scrap_Recycling_eff'] = 90.0
r1.scenario['15_Year_Module'].material['glass'].matdataIn_m['mat_MFG_scrap_Recycled_into_HQ'] = 100.0
r1.scenario['15_Year_Module'].material['glass'].matdataIn_m['mat_MFG_scrap_Recycled_into_HQ_Reused4MFG'] = 100.0
r1.scenario['15_Year_Module'].material['glass'].matdataIn_m['mat_PG4_Recycling_target'] = 100.0
r1.scenario['15_Year_Module'].material['glass'].matdataIn_m['mat_Recycling_yield'] = 90.0
r1.scenario['15_Year_Module'].material['glass'].matdataIn_m['mat_EOL_Recycled_into_HQ'] = 100.0
r1.scenario['15_Year_Module'].material['glass'].matdataIn_m['mat_EOL_RecycledHQ_Reused4MFG'] = 100.0 #95% of the above 2 gets turned into new panels
r1.scenario['50_Year_Module'].dataIn_m['mod_EOL_pg4_recycled'] = 100.0 #100% collection
r1.scenario['50_Year_Module'].dataIn_m['mod_EOL_collection_eff'] = 100.0
#r1.scenario['50_Year_Module'].material['glass'].materialdata['mat_MFG_eff'] = 100 #100% efficiency of recycling
r1.scenario['50_Year_Module'].material['glass'].matdataIn_m['mat_MFG_scrap_Recycled'] = 100.0
r1.scenario['50_Year_Module'].material['glass'].matdataIn_m['mat_MFG_scrap_Recycling_eff'] = 30.0
r1.scenario['50_Year_Module'].material['glass'].matdataIn_m['mat_MFG_scrap_Recycled_into_HQ'] = 100.0
r1.scenario['50_Year_Module'].material['glass'].matdataIn_m['mat_MFG_scrap_Recycled_into_HQ_Reused4MFG'] = 100.0
r1.scenario['50_Year_Module'].material['glass'].matdataIn_m['mat_PG4_Recycling_target'] = 100.0
r1.scenario['50_Year_Module'].material['glass'].matdataIn_m['mat_Recycling_yield'] = 30.0
r1.scenario['50_Year_Module'].material['glass'].matdataIn_m['mat_EOL_Recycled_into_HQ'] = 100.0
r1.scenario['50_Year_Module'].material['glass'].matdataIn_m['mat_EOL_RecycledHQ_Reused4MFG'] = 100.0 #95% of the above 2 gets turned into new panels
r1.calculateMassFlow()
title_Method = 'PVICE'
>>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant Working on Scenario: 15_Year_Module ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant Working on Scenario: base ******************** Finished Area+Power Generation Calculations ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant
r1.scenario['base'].material['glass'].matdataOut_m.keys()
Index(['mat_EOL_ReMFG_VAT', 'mat_EOL_Recycled_2_HQ', 'mat_EOL_Recycled_2_OQ',
'mat_EOL_Recycled_HQ_into_MFG', 'mat_EOL_Recycled_HQ_into_MFG_notUSED',
'mat_EOL_Recycled_HQ_into_OU', 'mat_EOL_Recycled_VAT',
'mat_EnteringModuleManufacturing_total',
'mat_EnteringModuleManufacturing_virgin', 'mat_L0', 'mat_L1', 'mat_L2',
'mat_L3', 'mat_L4', 'mat_LostinModuleManufacturing',
'mat_MFG_Recycled_HQ_into_MFG', 'mat_MFG_Recycled_HQ_into_OU',
'mat_MFG_Recycled_into_HQ', 'mat_MFG_Recycled_into_OQ', 'mat_MFG_Scrap',
'mat_MFG_Scrap_Landfilled', 'mat_MFG_Scrap_Recycled_Losses_Landfilled',
'mat_MFG_Scrap_Recycled_Successfully', 'mat_MFG_Scrap_Sentto_Recycling',
'mat_Manufacturing_Input', 'mat_PG2_stored', 'mat_Total_EOL_Landfilled',
'mat_Total_Landfilled', 'mat_Total_MFG_Landfilled',
'mat_Total_Recycled_OU', 'mat_UsedSuccessfullyinModuleManufacturing',
'mat_Virgin_Stock', 'mat_Virgin_Stock_Raw', 'mat_reMFG',
'mat_reMFG_2_recycle', 'mat_reMFG_all_unyields',
'mat_reMFG_mod_unyield', 'mat_reMFG_target', 'mat_reMFG_untarget',
'mat_reMFG_unyield', 'mat_reMFG_yield', 'mat_recycled_PG4',
'mat_recycled_all', 'mat_recycled_target', 'mat_recycled_yield'],
dtype='object')
r1.plotMaterialComparisonAcrossScenarios(material='glass', keyword='mat_Total_Landfilled')
print("Modules installed between 2010 and 2020 become decommissioned on ~2035-2045, that is why the baseline has 'jaggedy' lines that follow the installs on those years.")
print("This jaggedy lines are not seen in the 15_Year_Module example, because 90% of it is going into recycling. You can still see a bit of effect on 2025-2035.")
print("For base, after 2045, and for 15_years, after 2035 become nice curves because the installs follow a CAGR projection.")
print("IF more years where plotted for the 50_year_module, we would see the same jaggediness around 2065-2075")
Modules installed between 2010 and 2020 become decommissioned on ~2035-2045, that is why the baseline has 'jaggedy' lines that follow the installs on those years. This jaggedy lines are not seen in the 15_Year_Module example, because 90% of it is going into recycling. You can still see a bit of effect on 2025-2035. For base, after 2045, and for 15_years, after 2035 become nice curves because the installs follow a CAGR projection. IF more years where plotted for the 50_year_module, we would see the same jaggediness around 2065-2075
r1.plotMaterialComparisonAcrossScenarios(material='silicon', keyword='mat_Total_Landfilled')
r1.scenario['base'].dataOut_m.keys()
Index(['Area', 'Cumulative_Active_Area', 'EOL_BadStatus', 'EOL_Landfill0',
'EOL_PATHS', 'EOL_PG', 'Effective_Capacity_[W]', 'Landfill_0_ProjLife',
'MerchantTail_Area', 'MerchantTail_[W]', 'ModuleTotal_MFG', 'P2_stored',
'P3_reMFG', 'P4_recycled', 'PB1_landfill', 'PB2_stored', 'PB3_reMFG',
'PB3_reMFG_unyield', 'PB3_reMFG_yield', 'PB4_recycled', 'PG1_landfill',
'PG2_stored', 'PG3_reMFG', 'PG3_reMFG_unyield', 'PG3_reMFG_yield',
'PG4_recycled', 'Power_Degraded_[W]', 'Repaired_Area', 'Repaired_[W]',
'Resold_Area', 'Resold_[W]', 'WeibullParams',
'Yearly_Sum_Area_EOLby_Degradation', 'Yearly_Sum_Area_EOLby_Failure',
'Yearly_Sum_Area_EOLby_ProjectLifetime', 'Yearly_Sum_Area_PathsBad',
'Yearly_Sum_Area_PathsGood', 'Yearly_Sum_Area_atEOL',
'Yearly_Sum_Power_EOLby_Degradation', 'Yearly_Sum_Power_EOLby_Failure',
'Yearly_Sum_Power_EOLby_ProjectLifetime', 'Yearly_Sum_Power_PathsBad',
'Yearly_Sum_Power_PathsGood', 'Yearly_Sum_Power_atEOL',
'irradiance_stc'],
dtype='object')
r1.plotScenariosComparison(keyword='Effective_Capacity_[W]')
import copy
r1.scenario['15_Year_Module_IncreasedInstalls'] = copy.deepcopy(r1.scenario['15_Year_Module'])
r1.calculateMassFlow(scenarios='15_Year_Module_IncreasedInstalls')
>>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant
Needs to run each year becuase it needs to calculate the acumulated installs and deads.
a = r1.scenario['15_Year_Module_IncreasedInstalls'].dataIn_m
Under_Installment = []
for i in range (0, len(r1.scenario['base'].dataIn_m)):
Under_Installment = ( (r1.scenario['base'].dataOut_m['Effective_Capacity_[W]'][i] -
r1.scenario['15_Year_Module_IncreasedInstalls'].dataOut_m['Effective_Capacity_[W]'][i])/1000000 ) # MWATTS
r1.scenario['15_Year_Module_IncreasedInstalls'].dataIn_m.loc[i, 'new_Installed_Capacity_[MW]'] += Under_Installment
r1.calculateMassFlow(scenarios='15_Year_Module_IncreasedInstalls')
>>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 15_Year_Module_IncreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant
plt.plot(r1.scenario['15_Year_Module'].dataIn_m['new_Installed_Capacity_[MW]'], 'r')
plt.plot(r1.scenario['15_Year_Module_IncreasedInstalls'].dataIn_m['new_Installed_Capacity_[MW]'])
[<matplotlib.lines.Line2D at 0x2c1b5981750>]
Now copying to make the 50-year module with decreased installs
r1.scenario['50_Year_Module_DecreasedInstalls'] = copy.deepcopy(r1.scenario['50_Year_Module'])
r1.calculateMassFlow(scenarios='50_Year_Module_DecreasedInstalls')
>>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant
Over_Installment = []
for i in range (0, len(r1.scenario['base'].dataIn_m)):
Over_Installment = ( (r1.scenario['50_Year_Module_DecreasedInstalls'].dataOut_m['Effective_Capacity_[W]'][i] -
r1.scenario['base'].dataOut_m['Effective_Capacity_[W]'][i])/1000000 ) # MWATTS
r1.scenario['50_Year_Module_DecreasedInstalls'].dataIn_m.loc[i, 'new_Installed_Capacity_[MW]'] -= Over_Installment
r1.calculateMassFlow(scenarios='50_Year_Module_DecreasedInstalls')
>>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant >>>> Calculating Material Flows <<<< Working on Scenario: 50_Year_Module_DecreasedInstalls ******************** Finished Area+Power Generation Calculations Warning: Paths 0 through 4 add to above 100%;Fixing by Updating Landfill value to the remainder of100-(P0+P2+P3+P4). ==> Working on Material : glass ==> Working on Material : silicon ==> Working on Material : silver ==> Working on Material : copper ==> Working on Material : aluminium_frames ==> Working on Material : encapsulant
r1.plotScenariosComparison(keyword='new_Installed_Capacity_[MW]')
r1.plotScenariosComparison(keyword='Effective_Capacity_[W]')
r1.plotMaterialComparisonAcrossScenarios(material='glass', keyword='mat_Virgin_Stock')
r1.plotMaterialComparisonAcrossScenarios(material='glass', keyword='mat_Total_Landfilled')
plt.plot(r1.scenario['base'].dataIn_m['year'], r1.scenario['base'].dataOut_m['Effective_Capacity_[W]']/1e12, 'g', label='base')
plt.plot(r1.scenario['base'].dataIn_m['year'], r1.scenario['50_Year_Module'].dataOut_m['Effective_Capacity_[W]']/1e12, 'r', label='50 year Module')
plt.plot(r1.scenario['base'].dataIn_m['year'], r1.scenario['15_Year_Module'].dataOut_m['Effective_Capacity_[W]']/1e12, 'b', label='15 year Module')
plt.plot(r1.scenario['base'].dataIn_m['year'], r1.scenario['50_Year_Module_DecreasedInstalls'].dataOut_m['Effective_Capacity_[W]']/1e12, 'r--', label='50 year Module w base capacity')
plt.plot(r1.scenario['base'].dataIn_m['year'], r1.scenario['15_Year_Module_IncreasedInstalls'].dataOut_m['Effective_Capacity_[W]']/1e12, 'b--', label='15 year Module w. base capacity')
plt.ylabel('Power [TW]')
plt.title('Installed Active Capacity')
plt.xlim([2000, 2050])
plt.legend()
<matplotlib.legend.Legend at 0x2c1b8869f10>
plt.plot(r1.scenario['base'].dataIn_m['year'], r1.scenario['base'].dataIn_m['new_Installed_Capacity_[MW]']/1e3, 'g', label='base')
plt.plot(r1.scenario['base'].dataIn_m['year'], r1.scenario['50_Year_Module'].dataIn_m['new_Installed_Capacity_[MW]']/1e3, 'r', label='50 year Module')
plt.plot(r1.scenario['base'].dataIn_m['year'], r1.scenario['15_Year_Module'].dataIn_m['new_Installed_Capacity_[MW]']/1e3, 'b', label='15 year Module')
plt.plot(r1.scenario['base'].dataIn_m['year'], r1.scenario['50_Year_Module_DecreasedInstalls'].dataIn_m['new_Installed_Capacity_[MW]']/1e3, 'r--', label='50 year Module w base capacity')
plt.plot(r1.scenario['base'].dataIn_m['year'], r1.scenario['15_Year_Module_IncreasedInstalls'].dataIn_m['new_Installed_Capacity_[MW]']/1e3, 'b--', label='15 year Module w. base capacity')
plt.ylabel('Power [GW]')
plt.title('New Installed Capacity')
plt.xlim([2000, 2050])
plt.legend()
<matplotlib.legend.Legend at 0x2c1b87fe5d0>
plt.plot(r1.scenario['base'].dataIn_m['year'], r1.scenario['base'].material['glass'].matdataOut_m['mat_Virgin_Stock']/1e9, 'g', label='base')
plt.plot(r1.scenario['base'].dataIn_m['year'], r1.scenario['50_Year_Module'].material['glass'].matdataOut_m['mat_Virgin_Stock']/1e9, 'r', label='50 Year Module')
plt.plot(r1.scenario['base'].dataIn_m['year'], r1.scenario['15_Year_Module'].material['glass'].matdataOut_m['mat_Virgin_Stock']/1e9, 'b', label='15 Year Module')
plt.plot(r1.scenario['base'].dataIn_m['year'], r1.scenario['50_Year_Module_DecreasedInstalls'].material['glass'].matdataOut_m['mat_Virgin_Stock']/1e9, 'r--', label='50 Year Module w. base capacity')
plt.plot(r1.scenario['base'].dataIn_m['year'], r1.scenario['15_Year_Module_IncreasedInstalls'].material['glass'].matdataOut_m['mat_Virgin_Stock']/1e9, 'b--', label='15 Year Module w. base capacity')
plt.ylabel('Virgin Glass [Million Tonnes]')
plt.legend()
plt.title('Annual Virgin Material Input')
plt.xlim([2000, 2050])
(2000.0, 2050.0)
plt.plot(r1.scenario['base'].dataIn_m['year'], r1.scenario['base'].material['glass'].matdataOut_m['mat_Total_Landfilled']/1e9, 'g', label='base')
plt.plot(r1.scenario['base'].dataIn_m['year'], r1.scenario['50_Year_Module'].material['glass'].matdataOut_m['mat_Total_Landfilled']/1e9, 'r', label='50 Year Module')
plt.plot(r1.scenario['base'].dataIn_m['year'], r1.scenario['15_Year_Module'].material['glass'].matdataOut_m['mat_Total_Landfilled']/1e9, 'b', label='15 Year Module')
plt.plot(r1.scenario['base'].dataIn_m['year'], r1.scenario['50_Year_Module_DecreasedInstalls'].material['glass'].matdataOut_m['mat_Total_Landfilled']/1e9, 'r--', label='50 Year Module w. base capacity')
plt.plot(r1.scenario['base'].dataIn_m['year'], r1.scenario['15_Year_Module_IncreasedInstalls'].material['glass'].matdataOut_m['mat_Total_Landfilled']/1e9, 'b--', label='15 Year Module w. base capacity')
plt.ylabel('Landfilled Glass\n [Million Tonnes]')
plt.legend()
plt.title('Annual Landfilled Waste')
plt.xlim([2000, 2050])
(2000.0, 2050.0)
USyearly, UScum = r1.aggregateResults()
C:\Users\sayala\Documents\GitHub\PV_ICE\PV_ICE\main.py:2164: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling `frame.insert` many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()` USyearly[nicekey+'_'+mat+'_'+self.name+'_'+scen] = self.scenario[scen].material[mat].matdataOut_m[keywd] C:\Users\sayala\Documents\GitHub\PV_ICE\PV_ICE\main.py:2164: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling `frame.insert` many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()` USyearly[nicekey+'_'+mat+'_'+self.name+'_'+scen] = self.scenario[scen].material[mat].matdataOut_m[keywd] C:\Users\sayala\Documents\GitHub\PV_ICE\PV_ICE\main.py:2164: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling `frame.insert` many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()` USyearly[nicekey+'_'+mat+'_'+self.name+'_'+scen] = self.scenario[scen].material[mat].matdataOut_m[keywd] C:\Users\sayala\Documents\GitHub\PV_ICE\PV_ICE\main.py:2164: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling `frame.insert` many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()` USyearly[nicekey+'_'+mat+'_'+self.name+'_'+scen] = self.scenario[scen].material[mat].matdataOut_m[keywd] C:\Users\sayala\Documents\GitHub\PV_ICE\PV_ICE\main.py:2166: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling `frame.insert` many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()` USyearly[nicekey+'_Module_'+self.name+'_'+scen] = USyearly[filter_col].sum(axis=1) C:\Users\sayala\Documents\GitHub\PV_ICE\PV_ICE\main.py:2164: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling `frame.insert` many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()` USyearly[nicekey+'_'+mat+'_'+self.name+'_'+scen] = self.scenario[scen].material[mat].matdataOut_m[keywd] C:\Users\sayala\Documents\GitHub\PV_ICE\PV_ICE\main.py:2164: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling `frame.insert` many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()` USyearly[nicekey+'_'+mat+'_'+self.name+'_'+scen] = self.scenario[scen].material[mat].matdataOut_m[keywd] C:\Users\sayala\Documents\GitHub\PV_ICE\PV_ICE\main.py:2164: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling `frame.insert` many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()` USyearly[nicekey+'_'+mat+'_'+self.name+'_'+scen] = self.scenario[scen].material[mat].matdataOut_m[keywd] C:\Users\sayala\Documents\GitHub\PV_ICE\PV_ICE\main.py:2164: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling `frame.insert` many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()` USyearly[nicekey+'_'+mat+'_'+self.name+'_'+scen] = self.scenario[scen].material[mat].matdataOut_m[keywd] C:\Users\sayala\Documents\GitHub\PV_ICE\PV_ICE\main.py:2164: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling `frame.insert` many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()` USyearly[nicekey+'_'+mat+'_'+self.name+'_'+scen] = self.scenario[scen].material[mat].matdataOut_m[keywd] C:\Users\sayala\Documents\GitHub\PV_ICE\PV_ICE\main.py:2164: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling `frame.insert` many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()` USyearly[nicekey+'_'+mat+'_'+self.name+'_'+scen] = self.scenario[scen].material[mat].matdataOut_m[keywd] C:\Users\sayala\Documents\GitHub\PV_ICE\PV_ICE\main.py:2166: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling `frame.insert` many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()` USyearly[nicekey+'_Module_'+self.name+'_'+scen] = USyearly[filter_col].sum(axis=1) C:\Users\sayala\Documents\GitHub\PV_ICE\PV_ICE\main.py:2164: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling `frame.insert` many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()` USyearly[nicekey+'_'+mat+'_'+self.name+'_'+scen] = self.scenario[scen].material[mat].matdataOut_m[keywd] C:\Users\sayala\Documents\GitHub\PV_ICE\PV_ICE\main.py:2164: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling `frame.insert` many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()` USyearly[nicekey+'_'+mat+'_'+self.name+'_'+scen] = self.scenario[scen].material[mat].matdataOut_m[keywd] C:\Users\sayala\Documents\GitHub\PV_ICE\PV_ICE\main.py:2164: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling `frame.insert` many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()` USyearly[nicekey+'_'+mat+'_'+self.name+'_'+scen] = self.scenario[scen].material[mat].matdataOut_m[keywd] C:\Users\sayala\Documents\GitHub\PV_ICE\PV_ICE\main.py:2164: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling `frame.insert` many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()` USyearly[nicekey+'_'+mat+'_'+self.name+'_'+scen] = self.scenario[scen].material[mat].matdataOut_m[keywd] C:\Users\sayala\Documents\GitHub\PV_ICE\PV_ICE\main.py:2164: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling `frame.insert` many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()` USyearly[nicekey+'_'+mat+'_'+self.name+'_'+scen] = self.scenario[scen].material[mat].matdataOut_m[keywd] C:\Users\sayala\Documents\GitHub\PV_ICE\PV_ICE\main.py:2164: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling `frame.insert` many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()` USyearly[nicekey+'_'+mat+'_'+self.name+'_'+scen] = self.scenario[scen].material[mat].matdataOut_m[keywd] C:\Users\sayala\Documents\GitHub\PV_ICE\PV_ICE\main.py:2166: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling `frame.insert` many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()` USyearly[nicekey+'_Module_'+self.name+'_'+scen] = USyearly[filter_col].sum(axis=1) C:\Users\sayala\Documents\GitHub\PV_ICE\PV_ICE\main.py:2164: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling `frame.insert` many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()` USyearly[nicekey+'_'+mat+'_'+self.name+'_'+scen] = self.scenario[scen].material[mat].matdataOut_m[keywd] C:\Users\sayala\Documents\GitHub\PV_ICE\PV_ICE\main.py:2164: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling `frame.insert` many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()` USyearly[nicekey+'_'+mat+'_'+self.name+'_'+scen] = self.scenario[scen].material[mat].matdataOut_m[keywd] C:\Users\sayala\Documents\GitHub\PV_ICE\PV_ICE\main.py:2164: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling `frame.insert` many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()` USyearly[nicekey+'_'+mat+'_'+self.name+'_'+scen] = self.scenario[scen].material[mat].matdataOut_m[keywd] C:\Users\sayala\Documents\GitHub\PV_ICE\PV_ICE\main.py:2164: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling `frame.insert` many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()` USyearly[nicekey+'_'+mat+'_'+self.name+'_'+scen] = self.scenario[scen].material[mat].matdataOut_m[keywd] C:\Users\sayala\Documents\GitHub\PV_ICE\PV_ICE\main.py:2164: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling `frame.insert` many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()` USyearly[nicekey+'_'+mat+'_'+self.name+'_'+scen] = self.scenario[scen].material[mat].matdataOut_m[keywd] C:\Users\sayala\Documents\GitHub\PV_ICE\PV_ICE\main.py:2164: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling `frame.insert` many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()` USyearly[nicekey+'_'+mat+'_'+self.name+'_'+scen] = self.scenario[scen].material[mat].matdataOut_m[keywd] C:\Users\sayala\Documents\GitHub\PV_ICE\PV_ICE\main.py:2166: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling `frame.insert` many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()` USyearly[nicekey+'_Module_'+self.name+'_'+scen] = USyearly[filter_col].sum(axis=1) C:\Users\sayala\Documents\GitHub\PV_ICE\PV_ICE\main.py:2164: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling `frame.insert` many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()` USyearly[nicekey+'_'+mat+'_'+self.name+'_'+scen] = self.scenario[scen].material[mat].matdataOut_m[keywd] C:\Users\sayala\Documents\GitHub\PV_ICE\PV_ICE\main.py:2164: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling `frame.insert` many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()` USyearly[nicekey+'_'+mat+'_'+self.name+'_'+scen] = self.scenario[scen].material[mat].matdataOut_m[keywd] C:\Users\sayala\Documents\GitHub\PV_ICE\PV_ICE\main.py:2164: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling `frame.insert` many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()` USyearly[nicekey+'_'+mat+'_'+self.name+'_'+scen] = self.scenario[scen].material[mat].matdataOut_m[keywd] C:\Users\sayala\Documents\GitHub\PV_ICE\PV_ICE\main.py:2164: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling `frame.insert` many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()` USyearly[nicekey+'_'+mat+'_'+self.name+'_'+scen] = self.scenario[scen].material[mat].matdataOut_m[keywd] C:\Users\sayala\Documents\GitHub\PV_ICE\PV_ICE\main.py:2164: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling `frame.insert` many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()` USyearly[nicekey+'_'+mat+'_'+self.name+'_'+scen] = self.scenario[scen].material[mat].matdataOut_m[keywd] C:\Users\sayala\Documents\GitHub\PV_ICE\PV_ICE\main.py:2164: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling `frame.insert` many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()` USyearly[nicekey+'_'+mat+'_'+self.name+'_'+scen] = self.scenario[scen].material[mat].matdataOut_m[keywd] C:\Users\sayala\Documents\GitHub\PV_ICE\PV_ICE\main.py:2166: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling `frame.insert` many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()` USyearly[nicekey+'_Module_'+self.name+'_'+scen] = USyearly[filter_col].sum(axis=1) C:\Users\sayala\Documents\GitHub\PV_ICE\PV_ICE\main.py:2164: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling `frame.insert` many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()` USyearly[nicekey+'_'+mat+'_'+self.name+'_'+scen] = self.scenario[scen].material[mat].matdataOut_m[keywd] C:\Users\sayala\Documents\GitHub\PV_ICE\PV_ICE\main.py:2164: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling `frame.insert` many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()` USyearly[nicekey+'_'+mat+'_'+self.name+'_'+scen] = self.scenario[scen].material[mat].matdataOut_m[keywd] C:\Users\sayala\Documents\GitHub\PV_ICE\PV_ICE\main.py:2164: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling `frame.insert` many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()` USyearly[nicekey+'_'+mat+'_'+self.name+'_'+scen] = self.scenario[scen].material[mat].matdataOut_m[keywd] C:\Users\sayala\Documents\GitHub\PV_ICE\PV_ICE\main.py:2164: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling `frame.insert` many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()` USyearly[nicekey+'_'+mat+'_'+self.name+'_'+scen] = self.scenario[scen].material[mat].matdataOut_m[keywd] C:\Users\sayala\Documents\GitHub\PV_ICE\PV_ICE\main.py:2164: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling `frame.insert` many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()` USyearly[nicekey+'_'+mat+'_'+self.name+'_'+scen] = self.scenario[scen].material[mat].matdataOut_m[keywd] C:\Users\sayala\Documents\GitHub\PV_ICE\PV_ICE\main.py:2164: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling `frame.insert` many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()` USyearly[nicekey+'_'+mat+'_'+self.name+'_'+scen] = self.scenario[scen].material[mat].matdataOut_m[keywd] C:\Users\sayala\Documents\GitHub\PV_ICE\PV_ICE\main.py:2166: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling `frame.insert` many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()` USyearly[nicekey+'_Module_'+self.name+'_'+scen] = USyearly[filter_col].sum(axis=1)
r1.saveSimulation()
:) Saved Input and Output Dataframes
cum_Waste = []
cum_VirginNeeds = []
cum_InstalledCapacity = []
cum_NewInstalls = []
for ii in range (0, len(r1.scenario.keys())):
# Cumulative
scen = list(r1.scenario.keys())[ii]
cum_Waste.append(r1.scenario[scen].material['glass'].matdataOut_m['mat_Total_Landfilled'].sum())
cum_VirginNeeds.append(r1.scenario[scen].material['glass'].matdataOut_m['mat_Virgin_Stock'].sum())
cum_NewInstalls.append(r1.scenario[scen].dataIn_m['new_Installed_Capacity_[MW]'].sum())
cum_InstalledCapacity.append(r1.scenario[scen].dataOut_m['Effective_Capacity_[W]'].iloc[-1])
df = pd.DataFrame(list(zip(list(r1.scenario.keys()), cum_Waste, cum_VirginNeeds, cum_NewInstalls, cum_InstalledCapacity)),
columns =['scenarios','cum_Waste', 'cum_VirginNeeds', 'cum_NewInstalls', 'cum_InstalledCapacity'])
df[['cum_Waste', 'cum_VirginNeeds', 'cum_NewInstalls', 'cum_InstalledCapacity']] = df[['cum_Waste', 'cum_VirginNeeds', 'cum_NewInstalls', 'cum_InstalledCapacity']]*100/df[['cum_Waste', 'cum_VirginNeeds', 'cum_NewInstalls', 'cum_InstalledCapacity']].iloc[2] -100
df.round(2)
| scenarios | cum_Waste | cum_VirginNeeds | cum_NewInstalls | cum_InstalledCapacity | |
|---|---|---|---|---|---|
| 0 | 50_Year_Module | -10.49 | -1.52 | 0.00 | 0.56 |
| 1 | 15_Year_Module | -34.48 | -25.15 | 0.00 | -24.54 |
| 2 | base | -0.00 | 0.00 | 0.00 | 0.00 |
| 3 | 15_Year_Module_IncreasedInstalls | -21.04 | -1.44 | 29.04 | 0.00 |
| 4 | 50_Year_Module_DecreasedInstalls | -10.82 | -2.13 | -0.59 | 0.00 |
We have previously obtained results for ladnfilled waste for 50 year module, 15 year module, and 15 year module with increased installations to reach to 50 year module installed capacity. This is applies the LCA methodology to evaluate environmetnal impacts based on landfilled area.
Area_50years = r1.scenario['50_Year_Module'].material['glass'].matdataOut_m['mat_Virgin_Stock'].sum()
Area_15years = r1.scenario['15_Year_Module'].material['glass'].matdataOut_m['mat_Virgin_Stock'].sum()
Area_15years_Increased_Installs = r1.scenario['15_Year_Module_IncreasedInstalls'].material['glass'].matdataOut_m['mat_Virgin_Stock'].sum()
[acidification, carcinogenics, ecotoxicity, eutrophication,
fossil_fuel_depletion, global_warming,
non_carcinogenics, ozone_depletion, respiratory_effects, smog] = PV_ICE.calculateLCA(Area_50years)
[acidification2, carcinogenics2, ecotoxicity2, eutrophication2,
fossil_fuel_depletion2, global_warming2,
non_carcinogenics2, ozone_depletion2, respiratory_effects2, smog2] = PV_ICE.calculateLCA(Area_15years)
[acidification3, carcinogenics3, ecotoxicity3, eutrophication3,
fossil_fuel_depletion3, global_warming3,
non_carcinogenics3, ozone_depletion3, respiratory_effects3, smog3] = PV_ICE.calculateLCA(Area_15years_Increased_Installs)
global_warming = pd.DataFrame({'Global warming':['50 year', '15 year', '15 year Increased Installs'],
'val':[global_warming, global_warming2, global_warming3]})
ax = global_warming.plot.bar(x='Global warming', y='val', rot=0)
plt.title('Global Warming Effect, in kg CO2 eq')
Text(0.5, 1.0, 'Global Warming Effect, in kg CO2 eq')